<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta charset="UTF-8"name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <title>聊天系统</title>
    <link rel="stylesheet" href="/css/main.css" th:href="@{/css/main.css}" />
    <link rel="stylesheet" href="/css/my.css" th:href="@{/css/my.css}" />
    <link rel="stylesheet" href="/css/alert.css" th:href="@{/css/alert.css}"/>
    <script type="text/javascript" src="/js/adapt.js"></script>
</head>
<div id = "yu_admin">
    <body>
        <h1 id ="username" th:text="${current_user_name}">admin</h1>
        <input id="text" type="text" />
        <br />
        <button class="but" onclick="send()">Send</button>
        <br />
        <div id="message">
        </div>
        <p><a href="/welcome" th:href="@{/welcome}">返回主菜单</a></p>
    </body>
</div>
<script type="text/javascript" src="/js/websocket_chat.js"></script>
</html>